
import _ from "lodash";
import { handleActions } from "redux-actions";
import { AMEND_ADDRESS } from "../types";
//创建 修改数据的初始化值
const intAmend = {
    _id:'',
    name: "河马",
    Address: "武侯立交星悦荟",
    longitude: 2000,
    latitude: 3000,
    Cold_store: true,
    Phone: 1838109588,
    Open_hours: "8:10-8:30",
    Image:""
}


export const amendAddress = handleActions({
    [AMEND_ADDRESS]: (state, { payload }) => {
        const data = payload;
        return _.assign({}, state, data)
    }
}, intAmend)